package com.woniu.supermarket.mapper;

import com.woniu.supermarket.entity.PurchaseReturnDetail;
import com.woniu.supermarket.vo.PurchaseReturnDetailVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PurchaseReturnDetailMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(PurchaseReturnDetail record);

    PurchaseReturnDetail selectByPrimaryKey(Integer id);

    List<PurchaseReturnDetail> selectAll();

    int updateByPrimaryKey(PurchaseReturnDetail record);

    int deleteByPurchaseReturnId(Integer id);

    int insertBatchPurchaseReturnDetail(@Param("purchaseReturnDetailList") List<PurchaseReturnDetailVo> purchaseReturnDetailList);

    List<PurchaseReturnDetailVo> selectByPurchaseReturnCode(@Param("code") String code);
}